package mementoGeneric;
import java.util.*;
public class MemoryMemento {
	private ArrayList <Memento> memento;
	private static int index=0;
	public MemoryMemento()
	{
		memento=new ArrayList<Memento>();
	}
	public void setMemento(Memento m)
	{
		this.memento.add(index,m);
		index++;
	}
	public Memento getMemento(int index)
	{
	  return this.memento.get(index);	
	}
	

}
